<script setup lang='ts'>
import ProductItem from './ProductItem.vue';

const props = defineProps({
  config: {
    type: Object,
    default: {},
  },
});
</script>

<template>
  <view class="flex flex-wrap justify-between p-middle-2" style="flex: 1fr 1fr">
    <ProductItem v-for="item in props.config.data" :key="item.id" :product="item" />
  </view>
</template>

